package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Fu Zhaohui
 * @date 2015/4/15
 */
@ApiModel("用户地址")
@Setter
@Getter
public class EditUserAddrBo {

    @ApiModelProperty("主键")
    private String id;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;
    @NotNull
    @ApiModelProperty(value = "收件人",required = true)
    private String receiver;
    @NotNull
    @Pattern(regexp = "^(\\s{0})|(1\\d{10})", message = "手机号码格式错误")
    @ApiModelProperty(value = "手机号码",required = true)
    private String mobile;
    @ApiModelProperty(value = "邮编")
    private String postCode;
    @NotNull
    @ApiModelProperty(value = "区域ID",required = true)
    private String regionId;
    @NotNull
    @ApiModelProperty(value = "默认标识",required = true)
    private Integer defaultFlag;
    @NotNull
    @ApiModelProperty(value = "地址",required = true)
    private String address;
}
